package com.basker.pisces.domain.property.meta;

/**
 * 手机号属性
 *
 * @author hangwen
 */
public class MobileNoProperty extends TextProperty {

    private static final String CELLPHONE_REGEX = "^1([358][0-9]|4[579]|66|7[0135678]|9[89])[0-9]{8}$";

    public MobileNoProperty() {

    }

    @Override
    public Integer getMaxLength() {
        return 11;
    }

    @Override
    public final String getRegEx() {
        return CELLPHONE_REGEX;
    }

}
